/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package renta_peliculas;

import java.sql.Connection;
import javax.swing.JOptionPane;
/**
 *
 * @author jimmy-pc
 */
public class Menu extends javax.swing.JFrame {

    /**
     * Creates new form Menu
     */
    public Menu() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btn_productos = new javax.swing.JButton();
        btn_vendedor = new javax.swing.JButton();
        btn_clientes = new javax.swing.JButton();
        btn_inventario = new javax.swing.JButton();
        btn_renta = new javax.swing.JButton();
        btn_devolucion = new javax.swing.JButton();
        bnt_reportes = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        btn_productos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos/DVD-Box-icon.png"))); // NOI18N
        btn_productos.setText("Productos");
        btn_productos.setToolTipText("Alta de productos");
        btn_productos.setName("btn_producto"); // NOI18N

        btn_vendedor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos/Preppy-icon.png"))); // NOI18N
        btn_vendedor.setText("Vendedor");
        btn_vendedor.setToolTipText("Lista de vendedores");
        btn_vendedor.setName("btn_vendedor"); // NOI18N
        btn_vendedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_vendedorActionPerformed(evt);
            }
        });

        btn_clientes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos/user-group-icon.png"))); // NOI18N
        btn_clientes.setText("Clientes");
        btn_clientes.setToolTipText("Lista de Clientes");
        btn_clientes.setName("btn_clientes"); // NOI18N

        btn_inventario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos/checklist-icon.png"))); // NOI18N
        btn_inventario.setText("Invetario");
        btn_inventario.setToolTipText("Inventario de productos");
        btn_inventario.setName("btn_inventario"); // NOI18N

        btn_renta.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos/Cash-register-icon.png"))); // NOI18N
        btn_renta.setText("Renta");
        btn_renta.setToolTipText("Realizar una remta");
        btn_renta.setName("btn_renta"); // NOI18N

        btn_devolucion.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos/wire-transfer-icon.png"))); // NOI18N
        btn_devolucion.setText("Devolución");
        btn_devolucion.setToolTipText("Devolución de producto");
        btn_devolucion.setName("btn_devolucion"); // NOI18N

        bnt_reportes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos/reports-icon.png"))); // NOI18N
        bnt_reportes.setText("Reportes");
        bnt_reportes.setToolTipText("Reportes");
        bnt_reportes.setName("btn_report"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(47, 47, 47)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(btn_inventario, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btn_clientes, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btn_vendedor, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(btn_productos))
                .addGap(10, 10, 10)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(btn_devolucion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btn_renta, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(bnt_reportes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(58, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(btn_renta)
                        .addGap(18, 18, 18)
                        .addComponent(btn_devolucion)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(bnt_reportes))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(btn_productos)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btn_vendedor, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btn_clientes)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btn_inventario)))
                .addContainerGap(20, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btn_vendedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_vendedorActionPerformed
        // Evento del boton vededor que abre la forma de verdedor
        trabajador t = new trabajador();
        t.setVisible(true);
    }//GEN-LAST:event_btn_vendedorActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
//        Connection miConexion;
//        miConexion=conexion.GetConnection();
//      
//        if(miConexion!=null)
//        {
//            JOptionPane.showMessageDialog(null, "Conexión Realizada Correctamente");
//        }
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Menu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Menu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Menu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Menu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Menu().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bnt_reportes;
    private javax.swing.JButton btn_clientes;
    private javax.swing.JButton btn_devolucion;
    private javax.swing.JButton btn_inventario;
    private javax.swing.JButton btn_productos;
    private javax.swing.JButton btn_renta;
    private javax.swing.JButton btn_vendedor;
    // End of variables declaration//GEN-END:variables
}
